// 商品数据模型
const mongoose = require("mongoose");
const { Schema, model } = mongoose;

const users = new Schema({
    id:{type:'Number',default:100000},
    name:{type:'String', default:'美食品赏大师'},
    password:{type:'String', default:'123456'},
    shop:{type:Schema.Types.ObjectId, ref:'Shops'},  //开通店铺
    deliver:{type:'Boolean', default:'false'},  //配送服务
    deliverEarnings:{type:'Number',default:0},  //配送收益
    userImg:{type: 'String',default: 'https://p0.meituan.net/openhfiveimages/501cfc4c8898971811bcc44b06fb14872088.png'}
},{
    timestamps:true
});

module.exports = model('Users', users)
